الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

حفظ الصوره في ماي سيكول

Featured Replies

بتاريخ:

ده كود الميثود المسئوله عن حفظ الصوره في الجدول ولكن لا يتم حفظ الصوره في الجدول كامله نوع العمود في هذا اgجدول Blob

 

public class FileUpload implements Serializable {

    private UploadedFile file;
    private RichImage imgsource;

    public FileUpload() {
    }

    private BlobDomain createBlobDomain(UploadedFile imgfile) {
        InputStream is = null;
        OutputStream out = null;
        BlobDomain domain = null;

        try {
            is = imgfile.getInputStream();
            domain = new BlobDomain();
            out = domain.getBinaryOutputStream();
            byte[] buffer = new byte[8192];
            int byteRead = 0;
            while ((byteRead = is.read(buffer, 0, 8192)) != -1) {
                out.write(buffer, 0, byteRead);
            }
            is.close();
            out.close();

        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
        return domain;

    }

    public void setFile(UploadedFile file) {
        this.file = file;
    }

    public UploadedFile getFile() {
        return file;
    }

    public String uploadImage_action() {

        UploadedFile imgfile = this.getFile();
        BindingContext bindingctx = BindingContext.getCurrent();
        BindingContainer bindingcnt = bindingctx.getCurrentBindingsEntry();
        DCBindingContainer bindingImple = (DCBindingContainer) bindingcnt;
        DCIteratorBinding iterator = bindingImple.findIteratorBinding("CompanyView1Iterator");
        Row row = iterator.getCurrentRow();
        row.setAttribute("CompLogo", createBlobDomain(imgfile));
 

        return null;
    }

    public void setImgsource(RichImage imgsource) {
        this.imgsource = imgsource;
    }

    public RichImage getImgsource() {
        return imgsource;
    }


}

 

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.