Jump to content

Converting application/octet-stream to a PDF


This topic is 1954 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello

I am integrating with Apple's GSX API's, and one of the functions allows you to download a PDF of a 'DepotShippingLabel' which we need to send faulty parts off to Apple.

The data is sent as an application/octet-stream. I have tried saving that data into a FileMaker field, and then using 'Export Field Contents' to a path that resolved to

Get ( DesktopPath) & "mypdf.pdf"

However, the resulting file is not recognised by Preview or Acrobat.

Does anyone know how I can convert this type of data into a usable file using Filemaker (or an custom/plugin functions)? I can't post the whole data here as it contains sensitive data, but below is the beginning and end of it, just so you can see what sort of data I am being given by Apple. It is just plain text that I have moved into a text field.

 

JVBERi0xLjQKJeLjz9MKNCAwIG9    <lotsOfDataRemoved>    k+PgpzdGFydHhyZWYKMjQwOQolJUVPRgo=

 

Any hints or tips would be appreciated!

Link to comment
Share on other sites

This topic is 1954 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.