Author Topic: Is it possible to access the image manager from c#  (Read 4522 times)

Stenvang

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Is it possible to access the image manager from c#
« on: September 08, 2014, 11:34:16 pm »
As the name of the question says: Is it possibly to access the image manager from c#?

Why?
I would like to copy/paste the images into a word document through code or read them into a word document from their file path also through code.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Is it possible to access the image manager fro
« Reply #1 on: September 09, 2014, 05:12:05 am »
You need to access t_image with a query. Use something like
Code: [Select]
Repository.SQLQuery("SELECT * FROM t_image WHERE ...");
q.
« Last Edit: September 09, 2014, 05:12:22 am by qwerty »

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Is it possible to access the image manager fro
« Reply #2 on: September 09, 2014, 06:27:52 pm »
May this link will help you to insert the image from EA to Word document:
  
http://stackoverflow.com/questions/25358337/import-image-from-enterprise-arch...

Stenvang

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: Is it possible to access the image manager fro
« Reply #3 on: September 09, 2014, 06:35:44 pm »
Quote
May this link will help you to insert the image from EA to Word document:
  
http://stackoverflow.com/questions/25358337/import-image-from-enterprise-arch...

Thx for your reply but that link is actually my own question and solution to handling pictures in EA. The question of this topic is not how to handle the pictures, but how to access them from the image manager in EA.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Is it possible to access the image manager fro
« Reply #4 on: September 09, 2014, 08:00:12 pm »
In the referenced thread you ask about the diagram image. So what do you mean by "image manager"?

q.

Stenvang

  • EA User
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile
Re: Is it possible to access the image manager fro
« Reply #5 on: September 09, 2014, 10:16:50 pm »
By "Image Manager" in meant exactly what you wrote in the first reply.
Using the SQLQuery gave me everything I needed cause the images contains the base64String so I can use that to convert to an image object in c#.

Ty!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Is it possible to access the image manager fro
« Reply #6 on: September 09, 2014, 11:10:55 pm »
lol - would have been nice to recognize that in your reply above. Next time then  ;)

q.