Help me.. Please.. to import and export file in postgree |
[eluser]devon_jelek[/eluser]
Hello.. Maybe u can help me How to import and export file in postgree using CI??
[eluser]TheFuzzy0ne[/eluser]
Please do not double-post - http://ellislab.com/forums/viewthread/119437/.
[eluser]Dam1an[/eluser]
I was just thinking, I'm sure I just read this :-S lol
[eluser]devon_jelek[/eluser]
Sorry ... Whether you can help me solve my problem??? I need your help soon..
[eluser]Dam1an[/eluser]
Is there any particular reason why you need to do the import/export from within CI? Can you not use whatever equivalent there is for Postgree to PHPMyAdmin~?
[eluser]kea13[/eluser]
Hi devon_jelek, as suggested you could do the import/export with PGAdmin (http://www.pgadmin.org) or phpPgAdmin (http://phppgadmin.sourceforge.net). If that is not desirable/feasible, maybe you could be a bit more explicit about what you are trying to achieve? Regards, Roman
[eluser]devon_jelek[/eluser]
So how do I save the file to postgree? Maybe you can help me show the steps What data type should I use? oid or bytea? to save the file .zip Regards, devon
[eluser]kea13[/eluser]
Hi devon_jelek, quite frankly, why would you store a .zip file inside a database? Why don't you just store the filename in a varchar and leave the .zip in the filesystem? Admittedly i don't have a clue where the file(s) originate, but i don't see a reason to haul it into the database. Leaving the .zip in the filesystem would allow you to easily display its contents (e.g. to users of your platform) without having to pull it out of the db first ... If you absolutely have to put the file into the database, you wouldn't be using an oid since these are used internally by PostgreSQL as primary keys for various system tables. The data would have to reside in a bytea field (for data up to 1GB) or by using PostgreSQLs Large Object feature. Greetings, Roman
[eluser]devon_jelek[/eluser]
Task requires that I use to store files in postgree Maybe you can help me? Because the experiment several times I have been doing, I can not take the files that I save in postgree .. I crave your assistance |
Welcome Guest, Not a member yet? Register Sign In |