Parce que ca plante... On a déjà essayé plusieurs codes de ce genre...
Merci quand même !
Oriane
Oriane
En creusant un peu je pense savoir d'où vient le pb. Je passe par Access pour renseigner ma base Sql Server 2005 et je fais du OLE pour remplir mes images. Or je suis tombé sur ceci:
"Notice a subtlety in this code that is particular of the Northwind database but has no relevance in general. The original Access database was converted into SQL Server's Northwind database, so the image field called Photo doesn't contain a true GIF file; instead it contains the OLE object that Access builds to wrap any image. As a result, the stream of bytes you read from the field is prefixed with a header you must strip off to get the bits of the image. Such a header is variable-length and also depends on the length of the originally imported file's name. For Northwind, the length of this offset is 78 bytes."
Donc ce serait à cause de ceci que la conversion planterait !
Damnède !
En creusant un peu je pense savoir d'où vient le pb. Je passe par Access
pour renseigner ma base Sql Server 2005 et je fais du OLE pour remplir mes
images. Or je suis tombé sur ceci:
"Notice a subtlety in this code that is particular of the Northwind database
but has no relevance in general. The original Access database was converted
into SQL Server's Northwind database, so the image field called Photo
doesn't contain a true GIF file; instead it contains the OLE object that
Access builds to wrap any image. As a result, the stream of bytes you read
from the field is prefixed with a header you must strip off to get the bits
of the image. Such a header is variable-length and also depends on the
length of the originally imported file's name. For Northwind, the length of
this offset is 78 bytes."
Donc ce serait à cause de ceci que la conversion planterait !
En creusant un peu je pense savoir d'où vient le pb. Je passe par Access pour renseigner ma base Sql Server 2005 et je fais du OLE pour remplir mes images. Or je suis tombé sur ceci:
"Notice a subtlety in this code that is particular of the Northwind database but has no relevance in general. The original Access database was converted into SQL Server's Northwind database, so the image field called Photo doesn't contain a true GIF file; instead it contains the OLE object that Access builds to wrap any image. As a result, the stream of bytes you read from the field is prefixed with a header you must strip off to get the bits of the image. Such a header is variable-length and also depends on the length of the originally imported file's name. For Northwind, the length of this offset is 78 bytes."
Donc ce serait à cause de ceci que la conversion planterait !