Zum Inhalt springen

gafsa_lagare

Mitglieder
  • Gesamte Inhalte

    3
  • Benutzer seit

  • Letzter Besuch

  1. hallo, ich habe hier ne MYSQL Tabelle die jedem neuen Datensatz ne ID zuweißt (INT AUTO_INCREMENT PRIMARY KEY) id | name | wert1 | wert2 | 1 n1 ..... ...... 2 n2 ..... ...... 3 n3 ..... ...... wie bekomme ich dann die ID von n2 z.B? Hat jemand ne Idee? Danke für eure Hilfe.
  2. Danke für die schnelle antwort nein lSize und result sind 2724 , aber wenn ich die buffer in DB speicher (BLOB) ist es nur 59b !
  3. Hallo , ich hab ne ähnliche problem, ich will ein binäre datei lesen und in eine Datenbank speichern , aber von 2724b liest nur 59 b ! if(!(fp = fopen("file.p12", "rb"))) { cout <<"Error reading file.\n"; return -1; } long lSize; char * buffer; size_t result; // obtain file size: fseek (fp , 0 , SEEK_END); lSize = ftell (fp); rewind (fp); // allocate memory to contain the whole file: buffer = (char*) malloc (sizeof(char)*lSize ); if (buffer == NULL) {cout << "Memory error\n"; return -1;} // copy the file into the buffer: result = fread (buffer,1,lSize ,fp); if (result != lSize) {cout << "Reading error\n"; return -1;} fclose(fp); // buffer in DB schreiben .... Kann jemand helfen ? Danke !

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...