SQL_STAR بتاريخ: 13 يناير 2009 تقديم بلاغ مشاركة بتاريخ: 13 يناير 2009 بسم الله الرحمن الرحيمشباب انا اشتغل في قطاع التخطيط العمراني ادارة معلومات التخطيط يقومون بادخال بينات الشوارع والخدمات مع صور المخططات التابعه لها بواسطة برنامج ال arcgis-map كل جهاز محمل عليه هذا البرنامج وكل مدخل يخزن البينات في نفس الجهاز هم طلبو مني الان تجميع كل هذة البينانات الموجوده على الاجهزه وتخزينها في السرفر وادارتها بواسطة dbmsيا شباب انا ما في عندي فكره كيف بتم العمليه ارجووووووووووووووو المساعدة بليييييييييييييييييزوشكرا اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Ahmed.Hamdy بتاريخ: 13 يناير 2009 تقديم بلاغ مشاركة بتاريخ: 13 يناير 2009 Import BLOB Contents :- The following article presents a simple methods for importing a file into a BLOB datatype. First a directory object is created to point to the relevant filesystem directory:CREATE OR REPLACE DIRECTORY images AS 'C:\'; Next we create a table to hold the BLOB: CREATE TABLE tab1 (col1 BLOB); Finally we import the file into a BLOB datatype and insert it into the table: DECLARE l_bfile BFILE; l_blob BLOB; BEGIN INSERT INTO tab1 (col1) VALUES (empty_blob()) RETURN col1 INTO l_blob; l_bfile := BFILENAME('IMAGES', 'MyImage.gif'); DBMS_LOB.fileopen(l_bfile, Dbms_Lob.File_Readonly); DBMS_LOB.loadfromfile(l_blob, l_bfile, DBMS_LOB.getlength(l_bfile)); DBMS_LOB.fileclose(l_bfile); COMMIT; END; / Export BLOB Contents :- First we create a directory object pointing to the destination directory: CREATE OR REPLACE DIRECTORY BLOBS AS '/tmp/'; Next we open the BLOB, read chunks into a buffer and write them to a file: DECLARE l_file UTL_FILE.FILE_TYPE; l_buffer RAW(32767); l_amount BINARY_INTEGER := 32767; l_pos INTEGER := 1; l_blob BLOB; l_blob_len INTEGER; BEGIN -- Get LOB locator SELECT col1 INTO l_blob FROM tab1 WHERE rownum = 1; l_blob_len := DBMS_LOB.getlength(l_blob); -- Open the destination file. l_file := UTL_FILE.fopen('BLOBS','MyImage.gif','w', 32767); -- Read chunks of the BLOB and write them to the file -- until complete. WHILE l_pos < l_blob_len LOOP DBMS_LOB.read(l_blob, l_amount, l_pos, l_buffer); UTL_FILE.put_raw(l_file, l_buffer, TRUE); l_pos := l_pos + l_amount; END LOOP; -- Close the file. UTL_FILE.fclose(l_file); EXCEPTION WHEN OTHERS THEN -- Close the file if something goes wrong. IF UTL_FILE.is_open(l_file) THEN UTL_FILE.fclose(l_file); END IF; RAISE; END; Finally, you can check the file is produced correctly.and to add pictures through form first scan the pic u want to save in database then create form on the base of that table two text items to give file address on runtime 1. for file name 2. for file type create button add pic coding in when button pressed declare v_file_name varchar2(100); /* variable of file name */ v_file_type varchar2(20); /* variable of tile type */ begin v_file_name := :a.file_name ; /* :block_name.item_name of file name */ v_file_type := :a.file_type ; read_image_file(v_file_name,v_file_type,'a.pic'); end; منقول اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
SQL_STAR بتاريخ: 17 يناير 2009 كاتب الموضوع تقديم بلاغ مشاركة بتاريخ: 17 يناير 2009 شكرا يا اخي على ردك الجمل لكن ممكن توضح اكثر الموضوغ تجمع ملفات dbf الى قاغدة بينات اوراكل وتشغيلها كيف الطريقه في نقلها وتشغيلهاوجزاكم الله خير شباب اقتباس رابط هذا التعليق شارك المزيد من خيارات المشاركة
Recommended Posts
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.