I have an Android app which is sending images to ORDS using resp api and then images are stored into a table.
Is there any way I can save images to a server directory and save a link to a file instead of saving images a database table?
Anyone has any example.
You could use utl_file to write them to a directory on the server, but why not serve them up using the database, if they're already there?
Related
I'm getting enter image description here this message in the browser
The issue is that your image files are not configured properly. You will want to make sure that you copied the APEX image files to the appropriate directory on the web server.
Based on the error message you are receiving, your image prefix is /i/ so you will need to place the images within that directory on your web server.
Update
If you are having trouble setting up your images directory, you can also use Oracle's CDN to deliver the APEX files. Since you are running APEX 19.1, you would want to set your image prefix to https://static.oracle.com/cdn/apex/19.1.0.00.15/.
You can do this by running the script reset_image_prefix.sql found in the utilities folder of your APEX installation.
I have a little problem with getting an images from storage. Images are stored in storage/app/public/uploads/files directory. In database they are stored as file name image-1.png ... I am getting the files via url generated in Eloquent entity and url looks like src="/uploads/files/image-1.png" But cant see any image. Images are stored manually. Can somebody tell me please where is the problem?
If you generate the symbolic link, then your path will be :
/storage/uploads/files/image-1.png
I'm working on a Laravel API project, let see when you upload a image I change the colors, with a shell script. The api accepts urls so that means I have to save the image in a temp folder so that I can edit it and save it to my S3 filesystem. Is it convenient that I save the temp image in the S3 filesystems or local?
It will likely be much faster to save the image locally in a temp directory to make the changes before storing it on S3. You can use sys_get_temp_dir() to get a path used for temporary files.
https://secure.php.net/manual/en/function.sys-get-temp-dir.php
I have deployed laravel application in heroku. I am storing images in storage folder of laravel and trying to fetch it by defining a route. It was working well on local, but when i trying to do the same on server, then its not showing the images. I thought that storage folder is inside the laravel, so it should work fine, but its not working.
Can i store images in public folder by creating a named folder "gallery" inside that and put that gallery folder in gitignore. so will the gitignore folder be vanished when i will push the laravel project again?
Other options are using another file system. Most of them are paid, so i was thinking to save the images in database, is that the good idea or i should move to files only.
First of all, the storage directory should have right permission.
You should create a symbolic link from public/storage to storage/app/public.
Create the symbolic link:
php artisan storage:link
You cannot save images in database, only their names or links etc. I implemented the same thing you did by naming the files to their path and storing that to the database and then using it to fetch the data from folder on sever
I am new on Magento. I am facing some problem when open the site in browser.
I am having two sites:
http://www.diamondjewelryhub.com
http://musicalinstruments101.com/
I have download the code and database of http://www.diamondjewelryhub.com. I want to upload this code and database on the server of http://musicalinstruments101.com/.
After download the data base I searched for this http://www.diamondjewelryhub.com and replace with http://musicalinstruments101.com/.
After that I have import the database file on the server of http://musicalinstruments101.com/, When I am trying to open http://musicalinstruments101.com/ it redirecting on the site http://www.diamondjewelryhub.com.
Is there any change needed because it redirects wrong?
You have to change/delete the unsecure_url and secure_url from core_config_data table to be able to access your store on different url
When copying the files onto the new server remember to not copy the contents of var/ directory. That would include the cache which effectively overrides the database.