Aeries PIC Table - Saving Student Pictures with C#

eagle_software-aeries_sis2
Eagle_Software-Aeries_SIS2

TL;DR

This guide details how to programmatically extract and save student pictures stored in the Aeries PIC table using C# and SQL Server.

  • To efficiently retrieve the most current picture data, use an SQL query that joins the PIC table to find the maximum record year (YR) for each student ID.
  • The resulting data set must contain the necessary picture binary data, the student ID, and the file extension (XT).
  • A C# application should load the results of the SQL query into a data table and then iterate through the rows to save the files.
  • The process involves opening a connection, executing the command, and writing the binary picture data (RB) to the specified file path.