Hello!
Here's the problem:
I am currently making a Discord Bot, and I want to make a command that renders a text into an image. I have no problem making this, but the issue is that Discord.js only accepts URLs, not image objects. I've been trying to find packages or ways to host images, but I can't find any solution.
Any useful information is appreciated! Thanks :)
Encode the image to base64,then use the URL:
data:image/jpeg;base64,<encoded data>
Related
To explain it briefly, I'm trying to share the image as a URL.
But I need to update the image and I hope the URL doesn't change every time.
In other words, I am looking for a feature or site that can update images to the same URL.
I would appreciate it if you could let me know if there is a similar or the same service.
The way that comes to mind now is to add an image to the imgur and go out. We are looking for an alternative because the URL is the same, but it is a way to list images rather than just one image.
I'm trying to load an image from the server, the problem is I want to show CircularProgressIndicator by the time that the image is loading. so what came to my mind is to get the image separately instead of showing it by Image.network. so now I get the image from the server using http.get. how can I show the received value? should I use the response.bodyBytes?
You can use something like cached_network_image
you need to use a CachedNetworkImage widget, Here you can find and example...
Hope it helps.
I have a quick question regarding my assignment for school. So essentially it is a webform and I upload a photo and some info, and the .cgi file populates the data into a profile. I got it working when I upload the image to "public_html/images" folder, however the assignment requires me to upload and retrieve the image from "public_html/cgi-bin/assn1/images". The image uploads to both the "public_html/images" and the "../cgi-bin/assn1/images". However, in the case of the latter, I can't retrieve it. Can someone please give me some information as to how I could go about doing this? Also this is the school server so I am limited to what I can do...
profile photo.... <img src="../assn1/images/$fileName">
Any help would be appreciate it. Thank you in advance.
Cheers
What, exactly, do you mean by "I can't retrieve it"? Are you getting some kind of error message or a missing image icon? Is anything being written to the web server error log?
It's possible that the web server is configured so that everything under the /cgi-bin directory is interpreted as a CGI program. In which case, you shouldn't be storing static content there.
I'm trying to find out if there is a way to do google similar image searches via an API?
I know the image search api is depreciated but is it still useable?
https://developers.google.com/image-search/
Also... It seems that you can do image searches with the custom search api but I can't seem to work out if a similar image search is possible.
http://thenextweb.com/dd/2012/02/14/googles-custom-search-api-now-supports-image-only-results/
Any leads on advice on working this our would be appreciated.
Thanks!
If you have a URL for a hosted image (using Dropbox, imgur, etc), the answer at https://stackoverflow.com/a/15134958/116891 shows you how to find similar images. Basically,
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
That is deprecated.
But I need JSON format of similar images result.
So, I try to use google cse but this is not supported searching of similar images.
It's just displayed image search results in a custom domain.
Another method that i try is URL.
http://images.google.com/searchbyimage?image_url=YOUR_HOSTED_URL
But this is not solution what i need.
It is because able to use in the browser. I need JSON.
Conclude, I decide to use Vision API of Google.
This is very simple.
https://cloud.google.com/vision/
You can try on the top.
First, access the URL.
Second, upload your image file on the "Try API".
Third, click "JSON" tab menu on the result.
You can be seen JSON about similar images.
I'm having difficulty displaying an image with a given URL. does anyone have an idea on how to display an image on actionscript? thank you very much! someone told me to use Loader class
there is a tutorial here.