You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, what's the best way to create a new ImageMessage from a known remote URL (and the "author" attributes of course)?
Both ImageMessage and PartialImage have "size" as required, so should I do a HTTP "head" first and get the content-length from the response headers? Or is there a better / easier way?
The text was updated successfully, but these errors were encountered:
size property is used only to show the size of the image if image is presented as a file message (when image is too large to be presented inline). You can safely pass 0 there. I will make this optional in v2.
As for referring image from local storage, is FileImage good enough? See this code - if uri of the image message does not start with the http it will try to use FileImage to show it. I use it to show images picked from the phone gallery.
Hello, what's the best way to create a new ImageMessage from a known remote URL (and the "author" attributes of course)?
Both ImageMessage and PartialImage have "size" as required, so should I do a HTTP "head" first and get the content-length from the response headers? Or is there a better / easier way?
The text was updated successfully, but these errors were encountered: