Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-01-2015, 02:11 PM   #1
fxp33
Addict
fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
Catalog: export cover as blob

Hi,

I used Calibre to have my paper book collection.

I would like to have the list offline on my phone.

For now, I just export the catalog and import it in a simple database application. No problem.

The database app can display images, but they are stored as blob directly in the db. Not as a path...

Is there a way to export the catalog including the blob images?
(Or actualy, is there a simpler way to have my offline list on my phone?)

Thank you for your replies.

François
fxp33 is offline   Reply With Quote
Old 09-01-2015, 02:31 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What blob images? Covers in calibre as stored as files named cover.jpg in the book folders.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-01-2015, 02:54 PM   #3
fxp33
Addict
fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
Hi Kovid,

The database App I use on my phone (but surely there are better ones, hope someone will point it out) import / export images fields as BLOB. The "code" of the image is in the dump file.

I was just asking if someone knew of to have the path transformed into the BLOB to import the covers into the DB...

Personaly, I find the way Calibre works perfect, so it is more a matter of a third party conversion than a Calibre "per se" problem

Thanks for any hint of idea

François
fxp33 is offline   Reply With Quote
Old 09-01-2015, 02:55 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Ah, sorry, I was confused
kovidgoyal is offline   Reply With Quote
Old 09-01-2015, 03:04 PM   #5
fxp33
Addict
fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
No pb

You are always the first to answer

Therefore the one to tidy our improbable questions and their twisted formulations
fxp33 is offline   Reply With Quote
Advert
Old 09-01-2015, 03:57 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,048
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Years ago BLOB was Binary Large Object.
Any non (ASCI) text could be stored.
You could put/store a JPEG into a BLOB field. The APP was responsible for calling the viewer.

If I remember, Calibre 1 started saving books in a BLOB field and scrapped it (Calibre2) because performance was in the
theducks is offline   Reply With Quote
Old 09-01-2015, 04:23 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@fxp33 - we probably need more information
  1. If you wrote the phone app then why can't you import the image into the BLOB ?
  2. In which format do you save the catalogue?
  3. What type of phone you use - it's not in your profile?
  4. If its a third party app then could you tell us its name?
  5. Have you asked it's developer how you might import the images?
BR
BetterRed is offline   Reply With Quote
Old 09-01-2015, 07:25 PM   #8
fxp33
Addict
fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
Hi BetterRed,

Thank you for thinking that I could write an app for my phone it is very kind

Unfortunately, I just use it.

So if I add a picture in the app, and then I do an export, I see that the csv file has the image inside the file:

Code:
"Id";"title";"image"
"1";"wuthering heights";"356dfq4687df q54sd56df4gs5d4fg
6sd5f4gs65df4g6sd5fgsd654g6s5dfg6sdsfqsd56qvs15sd687fgs5f4fsq68g7sdf4gs6d8fg4s68ds64df8gs4d6f8g4sd6g8ds4ghs6d8gnsd6fn7sd65s4df8hgndf6g4hdn6f8ghd6f5gh7f6n6jd,7f86jruy8d6f8yhfg+h*7dfgjd6yj4d6,n8jy164d68j4d6g84jd6t8...";
"2";"Hamlet";"sdfqmjsdlkjsd475q4s5qs5dfq5sdfqf6fdsd6f45ghdf4d+68h4df64hd+fg98h4687h9h+sfg//+98fgh7+*/hs7d+h98d789fg+9df87h+f*..."
And in the sqlite database, the column type is BLOB (for an image field).

So my question was is there a way to insert the image inside the calibre exported csv file, so that it can be imported as BLOB into the DB...

François
fxp33 is offline   Reply With Quote
Old 09-01-2015, 07:26 PM   #9
fxp33
Addict
fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
Oh, I forgot:

The app name is

Porto DB on Android.

It works fine because you just import the calibre csv and it creates the table.

Thanks again
fxp33 is offline   Reply With Quote
Old 09-01-2015, 08:41 PM   #10
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Have you considered using Calibre Companion? It will integrate with calibre to get the books and their metadata. I don't know if there is a "catalog only" option for those who want the list when out and about.

Otherwise, I would suggest asking the developers of Porto DB how to load the images via the CSV. They probably have some requirements on the format of the image in the BLOB. And they might have suggestions for tools to create it.
davidfor is offline   Reply With Quote
Old 09-01-2015, 09:54 PM   #11
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,724
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
Have you considered using Calibre Companion? It will integrate with calibre to get the books and their metadata. I don't know if there is a "catalog only" option for those who want the list when out and about.


@fxp33 - here is the forum for Calibre Companion

In the NEW USERS [. . .] READ THIS sticky you will find a link to the Free Demo download - it is fully functional for a limited number of books. There's lots of other useful stuff there too.

BR
BetterRed is offline   Reply With Quote
Old 09-01-2015, 10:53 PM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
There is no Catalog-only option for Calibre Companion, but chaley has helped people who wanted one, the advice he gave was to create an empty txt file for each book and then send that.

Empty TXT files take up hardly any room but allow Calibre Companion to have something to "track".
There is also now an Add books option to add a blank TXT file (or other choice of format) for selected books.

Last edited by eschwartz; 09-01-2015 at 10:58 PM.
eschwartz is offline   Reply With Quote
Old 09-02-2015, 03:41 AM   #13
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
To confirm: we have many users who use CC as a catalog using the technique that eschwartz described.

One use case is that someone buys both electronic and physical books, reads the ebooks on some dedicated reader (no CC), and wants to have an easily-searchable catalog on a phone (or something) that is consulted before buying a book. One user said that she kept re-buying the same books and wanted to put a stop to that.

Another use case is someone who reads on a dedicated reader that doesn't have adequate metadata search/organization mechanisms but is otherwise a satisfactory device. The person would use CC to find the desired book then open that book in the reader.
chaley is offline   Reply With Quote
Old 09-02-2015, 02:41 PM   #14
fxp33
Addict
fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
Hi to all,

Reading with big interest your replies.

My paper library is 2166 books for now, and Porto DB seems to handle that very easily, without ads, perfectly offline... well, the only glitch is the covers.

As most of you advocate for calibre Companion, I will give of course give it a try.

And following DavidFor advice, I will contact porto DB developper to try and insert the pics in the csv file.

Of course, I will keep you up to date of my efforts

Regards

François
fxp33 is offline   Reply With Quote
Old 09-02-2015, 06:39 PM   #15
fxp33
Addict
fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.fxp33 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 262
Karma: 110864
Join Date: Mar 2013
Location: Bordeaux, France
Device: Kobo Glo, Aura HD, kindle paperwhite
Hi again,

The csv exported from PortoDB contains a blob in 64Base. Just need to decode it and write it in a jpg file to get the image.

Under windows (yes I am ashamed) in DOS (very, very ashamed) it is done with:

Code:
certutil -decode encodedInputFileName decodedOutputFileName


So, considering my level in coding, there no way ever that I can take the calibre catalog.csv and replace each cover path with the encoded image as 64base


Well at least that was fun digging.

François
fxp33 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export catalog to Excel myki Library Management 17 03-19-2015 01:19 PM
Calibre - Export/Import Settings and Catalog joseph.voros Library Management 4 06-13-2014 11:19 PM
Select books based on info from Conversion > Export Catalog halfcore Library Management 2 10-22-2013 06:15 PM
Changing cover for catalog Terisa de morgan Library Management 2 03-11-2011 02:57 AM
Export Catalog *and* the stored cover? Hitch Library Management 2 02-24-2011 10:50 PM


All times are GMT -4. The time now is 08:39 PM.


MobileRead.com is a privately owned, operated and funded community.