How to fetch amazon product image url from asin - javascript

We have the Amazon product ASIN in our database and we want to display the Amazon product image from it in frontend.
Any idea or library you are aware of that can fetch this quickly?
This should be done at frontend in javascript/

Related

Integrating data between website and mobile App

I will be making a website which will fetch some video data from database.
I am also making a mobile app using React-Native expo. I want the same data (videos) to be accessible from my React-Native mobile App.
My questions:
What is the best way (or best database) to store short videos for website + mobile App?
What is the API or the best method followed in industry to fetch the stored videos into a website?
What is the API or the best method followed in industry to fetch the SAME stored videos into a React-Native (or expo) mobile App?
Let me know if more clarification is needed.
Videos/Photos are usually stored in some file system. Amazon S3 is one option to store such data. You can then save the url to the image/video in your database.
Using that url you can show your video on a website, or mobile app.
For Expo:
https://docs.expo.io/versions/latest/sdk/video/
For web:
https://www.w3schools.com/html/html5_video.asp
I think you should do some research on MySQL and NoSQL both of these servers should run parallel to each other one for storing larger, shorter videos files and another one for storing user data and passing links on request.

Accessing of file in remote server using php showing error

I am trying to make an ecommerce website. Vendors can add images and details of their products. On selecting an image it will upload to remote machine successfully by using ajax and js. When the vendor submitting the details about the product it will added to the database after compressing of the uploaded image. Backend is completely with php & mysql. When submitting the the product details it showing an error 500. Is it because of file permissions or any other error?

Is there a way to get images from backend to frontend once they're separate modules?

I'm developing a system with vue and node, my backend and my frontend are listening from different ports, until now it wasn't a problem and I was able to exchange data through them, but now I need to get relative paths that are in a database to render images from a backend folder in my frontend. My question is: Is there a way to do it or I should try to save these files in my frontend folder?
These images are uploaded through a form where I register products, each product has one photo slot. I save the photo in a folder and get the path to the database.
I already tried to use in the path the address I'm running my backend i.e.: "http://localhost:3000/" + path and it didn't work :(

Taking a photo and uploading to google cloud services on a phone

I am working on a project where I need to upload an image to google cloud services..
The question is what are the steps that you take to upload an image to google cloud services in the web browser, I would prefer to upload it directly to google cloud services on the client side rather than uploading to my webserver and then uploading to google. Seems like that would take too many steps.
A little background is that this will take place in a mobile web browser..
Steps:
- A user will take a photo after clicking a button that launches their camera
- They will click save and the image will be uploaded directly to google cloud services, which will return a given id for that image to be stored in a table
I have read google cloud services documentation, yet primarily the information I found was related directly to android/ios for storage. I understand that you cannot upload an image using ajax, yet you can do it within an iframe. Is it possible to get the image binary data and convert it to base64 and then upload that string to google cloud services in order to store the data?
TLDR:
- What are the steps in order to upload an image to google cloud services?
In google App engine it is possible to upload image by converting to base64 but you will need to convert it again into binary blob type from base64 to store it.
It is possible to upload a image directly to google app engine just by using a single html form having <input file="" name="fileupload"/> on client side. Endpoint will be the servlet address on google appengine which handle this form request.
On the server side toy just need to get parameters of submitted form. Assign parameter named fileupload into blob type and then save using entity or in resource.
update: Submitting a from is possible through ajax without reloading but simple jquery/javascript don't support form submission which has input tag of file type therefore, a jquery plugin used to do this :
Ex:
$(function() {
$('#submitForm').ajaxForm(function(result) {
// Do some DOM operation like hiding loader
}).submit();
});

Is there a purely client side (javascript) photo library that can pull photos from s3?

I am looking for a javascript only photo gallery that can pull photos from an amazon S3 bucket or dropbox.
Does anything like this exist?
Basically I want to create a website for a client that does not need any server side code, and that can pull photos from a place where my client himself can upload his own photos (say amazon s3 or dropbox).
Well, I think you'll need some server-side code to provide a link between Dropbox and S3. But if they upload directly to S3, you should be able to reference it from S3 directly or cloudfront.
Some packages that may help you on your way:
http://code.google.com/p/js3db/
https://www.amazon.com/clouddrive/learnmore
http://www.andreafabrizi.it/?dropbox_uploader
http://sparkleshare.org/
http://jacwright.com/556/client-side-only-javascript-amazon-s3-cms/
Hope that helps...

Categories

Resources