Interacting with Vercel Blob from our JaVa app

I see the documentation for using Blob via SDK within Vercel and via JS/TS but how does one interact with the Blob storage with outside applications? We have an internal Java app that also needs access to upload files beyond the 4.5MB limitation, but I haven’t seen any examples of this use case.

Are there any CURL examples to work off of? Would we need to reversion eng the SDK and write our own wrapper? I assumed this would be a common use case, but now I’m wondering what other folks do in this situation. Thanks!

We don’t have Java SDK hence we don’t officially support it. You can implementing something similar to below code for Java SDK although we may not fully support it:

import requests

url = "https://blob.vercel-storage.com/file.jpg"

payload = "@-"
headers = {
  'content-type': 'application/octet-stream',
  'x-api-version': '7',
  'authorization': 'Bearer VERCEL_BLOB_TOKEN'
}

response = requests.request("PUT", url, headers=headers, data=payload)

print(response.text)

I fully understand why you dont support a Java SDK. Was more so looking for documentation around REST to build out our own wrapper if we needed to or how other folks handle working with Blob service outside of Vercel/Next

I understand the use case isnt totally common and the example helps.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Hey, @doodirock!

We’re actually looking for some feedback on the Vercel Blob SDK - just posted this. Would love to hear your thoughts :smile: