Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Converting application/octet-stream to a PDF

Featured Replies

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!

A shot in the dark: have you tried Base64Decode()?

  • Author

Thanks Comment, that did the trick!

Really?! I'm off to buy a lottery ticket...

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.