hi,
I have a service , where 1 parameter is System.Byte [] type. How to get type of that variable . if it is PDF or JPG ??
*This post is locked for comments
If you want to know if its a PDF or JPG file?
That might not really be possible with out some advanced code, the System.Byte type just tells you that you are getting some byte data, nothing about what that data really is.
So it that really what you need to know, or did I not understand your question?
Link to article about how to check if byte array is a picture https://stackoverflow.com/questions/8349693/how-to-check-if-a-byte-array-is-a-valid-image
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156