I downloaded images from a webservice, saved then into a TBitmap and used the command: bmpExample.SaveToStream(stExample); and saved the stream into my database (SQLite) PS: the column is a Blob field.
Until here everything works fine! I can see the image on the Data tab, the problem start when I try to load the image back to my application (firemonkey). I'm using the livebinds tool and linked my ListView into my Query (select * from empresa) in this way:
The header and the text loads fine, the only problem is with the image (that I know that exist because I can see on the Data tab of my SQL editor.
I found the answer, was because I used qMyQuery.Open after download the company informations, and after I had the ID of the company, I downloaded and inserted the images on the database but I did not said to my query to access again the database.
The answer to my problem:
Dm.qMyQuery.Close;
Dm.qMyQuery.Open();
Related
Does OBIEE support importing media files like photos that are stored in particular format in database tables?
For example if you are making an analysis with a client info and want to add client's picture to it, how is this possible in OBIEE? Does Admin tool work with them? Couldn't find useful info on this in the web, maybe someone here faced this issue?
It can be done with rtf template. If the data is comming from BLOB column in a table then after inserting the element in the form field you just have to update advanced part of property box to:
<fo:instream-foreign-object content-type="image/jpg">
<xsl:value-of select="YOUR_IMAGE_COLUMN_NAME"/>
</fo:instream-foreign-object>
The same way you could insert different content-types (MIME).
More here: https://docs.oracle.com/middleware/12211/bip/BIPRD/GUID-58D7E662-146A-44AA-86F9-111E2C6DB3A5.htm#BIPRD2396 Regards...
I was wondering if there is a way to download all the blob content from a table at once on the application side (via a button click ideally).
I could get it to download BLOB files/images on a record by record basis both on the interactive report and on the form using different approaches. But getting more than one at a time seems to be a rather tricky for me.
I am using
Oracle Apex 5.0.4. and
Oracle Database:12c.
Any help would be greatly appreciated.
A few links I went through:
http://docs.oracle.com/cd/E14373_01/appdev.32/e13363/up_dn_files.htm#CHDECDAJ
http://joelkallman.blogspot.be/2014/03/yet-another-post-how-to-link-to.html
No you can't download multiple files when clicking on a "download Button".
What you can do is build a zip file (in the server) with your selection of BLOBS and that is the one to download.
UTL_COMPRESS is the Oracle Package to do that.
An example on how to do it is here: UTL_COMPRESS, gzip and zip
Another one is the AS_ZIP: AS_ZIP
and ZIP_UTIL_PKG: ZIP_UTIL_PKG
I have recently published a solution for that using 4 steps:
Create a button to submit the page;
Create a page process that creates the blob of a zip file, using apex_zip API and stores it in a collection (using apex_collection);
Create a branch to the same page, calling an application_process=something;
Create an Ajax Callback called 'something' that prompts the user to open or download the zip file using WPG_DOCLOAD.download_file.
Take a look and let me know: https://apexcornies.wordpress.com/2020/04/04/create-a-download-zip-button-in-oracle-apex/
Cheers,
Pedro
I wants to populate image thumbnails (image grid) on my web page using JSP. Please suggest the best way. Also please suggest what should I store in the DB, image in binary format or path of the image in text format ?
The correct answer would be It depends on your project requirements
I would like to write my experience, if the images had to be prevented from un-authorized access then database would be a good option, but ASAIK I haven't developed any such application in past 3 years. I would just prefer putting up the images in a folder and then have their name in DB for reference purposes.
I just thing database has more important information to store & retrieve and I don't want to choke the database connections retrieving images.
I'm using the high performance image serving feature in App Engine to serve up images from the blobstore. However, I'd like users to be able to modify those images (e.g. rotate, crop etc.) and then write those change back to the blobstore, overwriting the original blob. I know I can write to new blobs in the blobstore, as documented here: http://code.google.com/appengine/docs/python/blobstore/overview.html#Writing_Files_to_the_Blobstore
but I don't see a way to overwrite existing blobs. Is this possible in App Engine?
My use case is as follows:
User uploads image, and app engine generates a link via
get_serving_url
The user may then use that link outside of my app, e.g. link to it
on their blog to display the image
If that image is changed later on in my app (rotation, etc.) , I'd
like their image link to reflect those changes
Files stored in blobstore are immutable, once they have been written than can not be changed (only served or deleted).
I think you should try to build your own controller for generate file serving url
- In Datastore each blobFile record have own ID (you manage it) and version ID
- for first upload , set new ID and version
- When user change your image, save new blobstore, keep ID and set new version field
In serving controller generate link by iD, when user call it, get the newest version for serving
It's just my opinion, hope it helpful !
I wanna create a table somehow in wondows phone that holds data that never changes and the application querys that data. Pretty simple but not sure how to do it.
Example
a table with Name, Description
When you open the app all the theres an input box to enter a name then you press a button and the description displays.
Using isolated storage seems like you are writing all the data to a file everytime the a user opens the app. Is that how it works?
Using isolated storage seems like you are writing all the data to a file everytime the a user opens the app. Is that how it works?
No, IsolatedStorage is storage - you can think of it as "disk" - so everything in it is persisted between application runs.
When you first run your application, then you'll need to create your files there, but after that time, then the files will already be in place.
If you need to put a large amount of data into IsolatedStorage and then need to search that data later, then "lite" database solutions like http://sterling.codeplex.com/ or SqlLite might help
For test purposes simply hard code the values as a dictionary.
In the long term I suggest you store the information as a file in isolated storage.
Here is an article that describes how to load and save data to isolated storage