Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

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.

SQL Comportement étrange: colonne blob invisible

Featured Replies

Posté(e)

Salut.

Dans mon programme, je crée une requête SQL pour créer mes tables, je suis certain qu'elles est effectuée:

create table app (_id integer primary key autoincrement, 
                       name text not null, 
                       desc text not null, 
                       rate text not null, 
                       price text not null, 
                       img text not null, 
                       imgblob blob not null, 
                       url text not null);

Ensuite dans le code quand j'affiche:

                        System.out.println(""+cursor.getColumnCount());
                       System.out.println(""+cursor.getColumnName(0));
                       etc...
                       System.out.println(""+cursor.getColumnName(6));

Je me retrouve avec ces informations:

I/System.out( 4871): 7

I/System.out( 4871): _id

I/System.out( 4871): name

I/System.out( 4871): desc

I/System.out( 4871): rate

I/System.out( 4871): price

I/System.out( 4871): img

I/System.out( 4871): url

et je me demande ou est le imgblob que j'ai créé!!!

essais effectués:

renommer la DB pour être certain qu'il la recrée bien, retirer le "not null" au cas ou, impossible d'avoir acces à ce champs, effacer et reinstaller, etc..!

Je commence à désespérer et j'ai vraiment besoin de récupérer ce blob afin d'afficher mon image!

Merci à celui qui pourra me sauver!

Modifié par Profete162

Posté(e)

et si tu fait un select * from app

dans la colonne sa te ressors quoi???

rentre des commandes en duyr pour essayé avec des donné

  • 2 weeks later...
Posté(e)

Bonjour,

ça ne serait pas par hasard la colonne imgblob que tu aurais oublié dans la projection ?

Modifié par Antares

Rejoignez la conversation

Vous pouvez poster maintenant et vous enregistrez plus tard. Si vous avez un compte, connectez-vous maintenant pour poster.

Invité
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Répondre à ce sujet…

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

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.