We are querying for contentversion data in apex and would like to take the first part of the file data and send chunk by chunk to another webserver.
Is there a way to only take 10,000 bytes of the blob versionData. Does anyone have any example apex that does this?
Currently we are able to query, but as soon as refer to the data field we blow our heap size (it's a big file).
We would like to adjust the code below to only take chunks in the second line of apex...
contentversion[] cv=[select id, title, versiondata from contentversion where title like 'Deadmau5%'];
String att64 = EncodingUtil.base64Encode(cv[0].VersionData);