web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get Type Of System.Byte

(0) ShareShare
ReportReport
Posted on by

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

  • Suggested answer
    Rudi Hansen Profile Picture
    4,079 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans