djmartins Posted October 6, 2006 Report Share Posted October 6, 2006 Jus jau drosvien teiksiet ka uploudet uz db failus tas ir mulkigi bet nu saja gadijuma man tiesam tas ir nepieciesams.Tacu isti nezinu ka uztaisit to koda gabalu.Agrak google vareju atrast daz ne dazadakos uploudesanas scriptus bet pedeja laika gogle kaut ka nestrada ka agrak.Kads nezin kaut kadas adreses vai ko tamlidzigu kur varedu dabut kadu koda gabalu?Jeb varbut kadam ir gatavs variants un nav zel padalities?Ieprieks jau paldies! Link to comment Share on other sites More sharing options...
Blitz Posted October 6, 2006 Report Share Posted October 6, 2006 ko tu tiesi nezini, kaa uploudot failu vai kaa ielikt to db? Link to comment Share on other sites More sharing options...
djmartins Posted October 6, 2006 Author Report Share Posted October 6, 2006 gan to gan to!Nu vienkarsi nemaku ipasi programet.Apmeram esmu redzejis ka jaizskatas bet ta isti nojauta man nav nekada. Link to comment Share on other sites More sharing options...
andrisp Posted October 6, 2006 Report Share Posted October 6, 2006 Īsti nezinu, bet man šķiet, ka vienkārši uploado failu, ielasi php mainīgajā ar file_get_contents(); un pēc tam inserto db laukā, kurš ir blob tipa un viss. Link to comment Share on other sites More sharing options...
Delfins Posted October 6, 2006 Report Share Posted October 6, 2006 http://www.google.lv/search?q=saving+image+database+mysql Link to comment Share on other sites More sharing options...
GedroX Posted October 6, 2006 Report Share Posted October 6, 2006 (edited) Ja fails ir binary, tad var rasties problēmas ar escape-ošanu. Vismaz PostgreSQL nācās saturu bīdīt caur specifisku metodi. P.S. Laikam mysql var iztikt ar addslashes... Edited October 6, 2006 by GedroX Link to comment Share on other sites More sharing options...
Delfins Posted October 6, 2006 Report Share Posted October 6, 2006 katrai DB ir savādāk.. vienai ir limits uz SQL (jāvelk caur kursoru), citam spec-simboli... google tač... pieļauju iespēju, ka var atrast piemērus visām DB. PS: glabāt DB failus nebūt nav stulbi.. kurš to teica!?... Ja sistēmai tā ir nospecificēts, tad tā tam arī jābūt. Link to comment Share on other sites More sharing options...
andrisp Posted October 6, 2006 Report Share Posted October 6, 2006 Delfins, diezvai viņam ir specifikācija. Un manuprāt jaunie php'isti/mysql'isti bieži grib glabāt attēlus datubāzē nevietā. Link to comment Share on other sites More sharing options...
Blitz Posted October 6, 2006 Report Share Posted October 6, 2006 seit bus tiesi tas kas tev vajadzigs. Googlee joprojam speeks. http://www.google.lv/search?hl=lv&q=sa...mysql&meta= Link to comment Share on other sites More sharing options...
Recommended Posts