Tracking upload progress of asset upload - usergrid

Can I track the upload progress of asset when attaching to an entity using the javascript SDK? Also my image is base64 encoded and embedded within a div (indeed as a img src attribute). When I try to attach this as a binary content I get the error as "readAsBinaryString is not an object". I used atob to do this conversion. Will this SDK request this in some specific format or do I just need to pass this binary content which I got as result?

Currently this is not supported by the Usergrid API or Usergrid SDKs. You could probably work around it using HTML5, but more than likely you'd have to fake it.

Related

Image manipulate in lexical editor

I am working on blog like web project using lexical editor in nextjs.
I am trying to implement image plugin in lexical editor. For now it coverts to base64 format which will be expensive for storing in database. Instead of storing base64 I want to store the image link along with other text inside database. Also I am facing issue to implement image plugin of lexical editor in nextjs.
steps I want to follow
I want to upload image in aws s3 and then want to show in editor as image.
Another way I am trying to implement like a modal will open where image can be selected
and it uploads to aws s3 and gets image url, then want to show image url in editor.
Is there any solution for it?
Thanks in advance for any suggestion

How to save and share a layout in jpeg format on roomle?

I have a professional subscription of Roomle? I have read that a layout can be saved as jpeg in high resolution but I can’t find any option anywhere.
If you are using the Roomle SDK you can use preparePerspectiveImage (link) to generate an image.
If you are using the Embedding Lib you can listen to onRequestProduct (link) which will contain the image as Base64.
In case you just want to render an image without an integration you can use the feature in Rubens admin (link). This feature is only available for level 2 customers and above.

Edit Exif Data in iOS Photos Gallery/ LIbrary without Creating Another Copy

Is there a way to edit/ modify the exif data of the photot that are part of iOS photo library / gallery on the iPhone. Whenever I try to do that, iOS tries to save it as a separate image file. However, I would like to modify the exif data, without creating another copy of the photo. I used libexif as mentioned in the links below, however libexif lets you read and modify the data, but I could not figure out a way to store in the same file.
Gallery APIs in IOS (ALAsset, PhotoKit) do not seem to provide direct access to underlying physical file. They only provide APIs using which the image content can be accessed/ updated or inserted. They do not seem to have apis to modify the exif data. Also, libexif seems to work on the raw filename path. Is there a way to get the raw filename using PhotoKit or ALAsset ?
Am I missing something? Any help or pointers will be deeply appreciated.
How to write or modify EXIF data for an existing image on the filesystem, without loading the image?
Save original image data with modified metadata (no re-encoding) on iOS

Streaming PDF SDK to iOS via HTTP

Are there any good SDKs available on iOS that will not only display a PDF, but will show it as it is downloading from a web source? It is perfectly fine to use a paid for library as long as it is commercial-friendly.
To clarify, the SDK must be able to show partial files as they are downloading, whether I provide the stream or otherwise. I would like to avoid CGPDFScannerRef due to how low level it is -- I have tried FastPdfKit as well but it will only show the whole PDF after it has been fully downloaded. Any ideas?
PDF is a structured format that consists of different types of data blocks such as TOC, text, fonts, colors, annotations and information about these blocks is saved at the end of the file. So this makes it impossible for CGPDFDocumentRef to open the pdf without all the data available.
However you can get around this limitation by linearizing the PDF file so that the metadata information will be put at the beginning of the file. I'm not sure but I think you can then use CGDataProviderCreateSequential in combination with CGPDFDocumentRef to parse a partially downloaded PDF file.

How do you perform a resumable upload to a google docs collection? Namely using Java and g-data library

I've got a working system to upload to the default root using resumable uploads and I've been able to make the meta data in a collection but I need to be able to do this type of upload straight to a collection or sub collection.
My main problem is the url, there's no defined example of a straight upload path to a collection?
I assumed that it would be like:
https://docs.google.com/feeds/upload/create-session/default/private/full/folder%3A[folder_id]/contents
considering that the typical upload path is similar except without the upload/create-session part?
In a folder entry, look for a link like this:
<link rel="http://schemas.google.com/g/2005#resumable-create-media"
type="application/atom+xml"
href="https://docs.google.com/feeds/upload/create-session/default/private/full"/>
The href is what you need to send to to create the file in that folder.
p.s. Have you considered using the new Drive API? It has this funcitonality and is considerably better to use.
Turns out I was originally correct and the URL I provided was correct for uploading but the function I created for generating the URL was missing out the / between feeds and upload

Resources